<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<load href="__PUBLIC__/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="__CSS__main.css"/>
<link rel="stylesheet" type="text/css" href="__CSS__jquery.datetimepicker.css"/>
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<load href="__PUBLIC__/js/main.js" />
</head>


<body>
<!-- 图片资源开始 -->
<div class="floatBackground" id="floatBackground" style="display: none;">
	<div class="bounced">
	<label class="closeImgResurces">X</label>
	<iframe id="imgResourcesiframe" src="{:rtrim(U('Upload/index'),'.html')}" width="750" height="465" frameborder="0" scrolling="auto"></iframe>
	</div>
</div>
<!-- 图片资源结束 -->
<div class="main-frame">
	<div class="position">中国节 > 编辑页面</div>
	<div class="addobject">
		<div class="obj-form">
			<form name="form1" id="typeform1" action="{:U('Index/editSaveColum')}" method="post" class="form-inline">
			<input type="hidden" name="fstvid" value="{$fstvrest.fstvid}">	
				<ul>
					
					<li>
						<label class="fl tle">节日名称：</label>
						<span class="fl cnt"><input name="fstv_name" class="form-control" placeholder="节日名称" value="{$fstvrest.fstvnm}" required ><em>*</em></span>
					</li>
					
					<li>
						<label class="fl tle">节日时间：</label>
						<span class="fl cnt"><input id="fstv_startdate" name="fstv_startdate" class="txtlength200" value="{$fstvrest.fstvdt}" placeholder="节日时间"></span>
					</li>
					<li>
						<label class="fl tle">作品图片：</label>
						<span class="fl cnt"><input name="picture" id="thumbimg" class="form-control" placeholder="节日图片" value="{$fstvrest.fstvpicture}" style="width: 300px;"><a class="browse" f='thumbimg'>浏览···</a></span>
					</li>
					<li>
						<label class="fl tle">节日banner：</label>
						<span class="fl cnt"><input name="fstvbanner" id="thumbimg1" class="form-control" placeholder="节日banner图" value="{$fstvrest.fstvbanner}"  style="width: 300px;"><a class="browse" f='thumbimg1'>浏览···</a></span>
					</li>
					<li>
						<label class="fl tle">排序：</label>
						<span class="fl cnt"><input name="fstv_sort" class="form-control" value="{$fstvrest.fstvsort}" placeholder="排序"></span>
					</li>
					<li class="submit">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt">
							<input type="submit" value="确 定" class="submitbtn" />
							 <a href="{:U('Index/columnList')}">取消并查看列表</a></span>
					</li>
				</ul>
			</form>
		</div>
	</div>

</div>
<script src="__JS__jquery.datetimepicker.full.js"></script>
<script type="text/javascript">
	function getNowFormatDate() {
		var date = new Date();
		var seperator1 = "-";
		var seperator2 = ":";
		var month = date.getMonth() + 1;
		var strDate = date.getDate();
		if (month >= 1 && month <= 9) {
			month = "0" + month;
		}
		if (strDate >= 0 && strDate <= 9) {
			strDate = "0" + strDate;
		}
		var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
				+ " " + date.getHours() + seperator2 + date.getMinutes();
		return currentdate;
	}
	$.datetimepicker.setLocale('zh');
	$('#fstv_startdate').datetimepicker({value:getNowFormatDate(),step:10});
</script>
</body>
</html>
